//
//  UIColor + Extension.swift
//  XDweibo
//
//  Created by HanXingda on 15/7/5.
//  Copyright © 2015年 韩兴达. All rights reserved.
//

import UIKit

extension UIColor {
    
    class func randomColor() -> UIColor {
        return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: CGFloat(1.0))
    }
    
   private class func randomValue() -> CGFloat{
        return CGFloat(arc4random_uniform(256)) / 255
    }
}